<template>
  <view class="mainBody">

    <view class="text-sty"> 您暂未登录</view>
    <up-button text="去登录" class="main-btn" :customStyle="{
					width: '20%',
					height: '56rpx',
					border: '1rpx solid #E5E5E5',
					background: '#fff',
					borderRadius: '8rpx',
					fontSize: '28rpx',
					color: 'color: rgba(0,0,0,0.65)'
				}" @click="gotoLogin()"></up-button>
  </view>

</template>

<script setup>
// import { inspectList, inspectDelete } from '@/api/inspect.js';
// import { onShow, onReachBottom } from '@dcloudio/uni-app'
// import { ref } from 'vue';
// import { toast, showConfirm } from '@/utils/common.js';
// import {dailyDelete, dailyList} from "../../api/dailyInspect";
// import {shopDelete, shopList} from "../../api/shop";

function simulateClickRedirect(url) {
  const link = document.createElement("a");
  link.href = url;
  link.target = "_blank"; // 可选：在新标签页打开
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
}

// simulateClickRedirect("https://cas.ndky.edu.cn/authserver/login");
const gotoLogin = ()=>{
  simulateClickRedirect('https://cas.ndky.edu.cn/authserver/login?service=https://vehicle.ndky.edu.cn/')
  // window.location.href = 'https://cas.ndky.edu.cn/authserver/login?service=http://10.88.110.107:8001/'
}

</script>

<style lang="scss" scoped>
.mainBody{
  width: 100%;
  height: 100%;
  padding: 26rpx;
  .text-sty{
    //width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 36rpx;
    position: absolute;
    top: 20%;
    left: 40%;
  }
  .main-btn{
    position: absolute;
    top: 40%;
    left: 40%;
    width: 20%;
  }
}


</style>